/**
 * Company : SIANGKLOM.
 * Created By : Chatree Siangklom
 * Created On : Aug 27, 2013  2:57:05 PM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : com.tis.database.entitys.staging
 * File Name : .java
 * TODO
 */
package com.tis.database.entitys;

import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import java.io.Serializable;
import javax.persistence.*;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.tis.database.dao.ClsInstance;

/**
 * The persistent class for the SYNC_APPS_HOST database table.
 * 
 */
@Entity
@Table(name= ClsInstance.INTERFACE_SCHEMA + ClsInstance.POINTER + "SYNC_APPS_HOST")
@NamedQueries({
    @NamedQuery(name = SyncAppsHost.findAll, query = "FROM SyncAppsHost c "),
    @NamedQuery(name = SyncAppsHost.findById, query = "FROM SyncAppsHost c WHERE c.Id = :Id "),
    @NamedQuery(name = SyncAppsHost.findByCode, query = "FROM SyncAppsHost c WHERE c.code = :code And c.isActive = :isActive And c.client = :client ")
})
public class SyncAppsHost extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	public static final String findAll = "SyncAppsHost_findAll";
	public static final String findById = "SyncAppsHost_findById";
	public static final String findByCode = "SyncAppsHost_findByCode";
	
	@Override
	public String toString()
	{
		return ToStringBuilder.reflectionToString(this);
	}
	
	@Id
	@Column(name="SYNC_APPS_HOST_ID")
	private String Id;

	private String code;

	@Column(name="HOST_NAME")
	private String hostName;
	
	@Column(name="CLIENT")
	private String client;

	@Column(name="ISACTIVE")
	private String isActive;

    public SyncAppsHost() {
    }

	/**
	 * @return the id
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 * SyncAppsHost.java String
	 * TODO
	 */
	public String getId() {
		return Id;
	}

	/**
	 * @param id the id to set
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 *  SyncAppsHost.java String
	 * TODO
	 */
	public void setId(String id) {
		Id = id;
	}

	/**
	 * @return the code
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 * SyncAppsHost.java String
	 * TODO
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 *  SyncAppsHost.java String
	 * TODO
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the hostName
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 * SyncAppsHost.java String
	 * TODO
	 */
	public String getHostName() {
		return hostName;
	}

	/**
	 * @param hostName the hostName to set
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 *  SyncAppsHost.java String
	 * TODO
	 */
	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	/**
	 * @return the client
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 * SyncAppsHost.java String
	 * TODO
	 */
	public String getClient() {
		return client;
	}

	/**
	 * @param client the client to set
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 *  SyncAppsHost.java String
	 * TODO
	 */
	public void setClient(String client) {
		this.client = client;
	}

	/**
	 * @return the isActive
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 * SyncAppsHost.java String
	 * TODO
	 */
	public String getIsActive() {
		return isActive;
	}

	/**
	 * @param isActive the isActive to set
	 * Date =Nov 4, 2013 : 10:04:33 AM 
	 * CreateBy=Chatree Siangklom
	 *  SyncAppsHost.java String
	 * TODO
	 */
	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}

	

}